#include "state.h"

State::State()
{
	setState(READY);
}

void State::pause()
{
	if (getState() == ACTIVE)
	{
		setState(PAUSED);
	}
}

void State::resume()
{
	if (getState() == PAUSED)
	{
		setState(ACTIVE);
	}
}

void State::reset()
{
	setState(READY);
}

void State::setState(StateType state)
{
	state_ = state;
}

State::StateType State::getState() const
{
	return state_;
}

